home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
ptv1n2.arc
/
43LINES.ASM
< prev
next >
Wrap
Assembly Source File
|
1990-06-14
|
749b
|
31 lines
; Code to put VGA into EGA emulation mode.
; (EGA mode remains in effect until explicitly changed.)
MOV AX,3 ; reset video mode 3...
INT 10H
MOV AX,1201H ; ...and set 640 x 350 scan
MOV BX,0030H
INT 10H
; Code to select small font.
; This gives 43 lines in EGA mode, 50 lines in normal VGA mode.
MOV AX,3 ; reset video mode 3...
INT 10H
MOV AX,1112H ; ...and switch to small font
MOV BL,0
INT 10H
; To get back to 25 lines, just set same video mode again.
MOV AX,3 ; reset video mode 3
INT 10H
; Code to put the VGA back into its native video mode.
MOV AX,3 ; reset video mode 3...
INT 10H
MOV AX,1202H ; ...and set 640 x 480 scan
MOV BX,0030H
INT 10H